package com.htrq.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htrq.dao.LoginDao;
import com.htrq.entity.TResource;
import com.htrq.entity.User;

@Service
@Transactional(value="txManager")
public class LoginService {
	@Resource
	private LoginDao loginDao;
	
	public List<TResource> getRightByUser(User user) {
		List<TResource> list=loginDao.getRightByUser(user);
		return list;
	}

	public User getUser(String uname) {
		//TODO Auto-generated method stub
		return loginDao.getUser(uname);
	}
}
